package com.financing.platform.service;


 
import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.financing.platform.common.ResultMap;
import com.financing.platform.dto.ActivitesDTO;
import com.financing.platform.dto.ActivitesExpandDTO;

public interface IActivitesService{
 
	
	/**
	 * 根据活动code查询活动
	 * @param activitesCode
	 * @return
	 */
	public ActivitesDTO searchActivitesByCode(String activitesCode) throws SQLException;
	
	/**
	 * 根据活动
	 * @param activitesCode
	 * @return
	 */
	public List<ActivitesExpandDTO> searchActivitesExpand(String activitesCode)
			throws SQLException;
	
	
	
	/**
	 * 根据活动code判断当前时间是否过期
	 * @param code
	 * @return
	 */
	public boolean isOutDateByCode(String code);
	
	/**
	 * 根据活动code判断输入时间是否过期
	 * @param code
	 * @return
	 */
	public boolean isOutDateByCode(String code,Date date);
	
	
	/**
	 * 活动任务执行
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public ResultMap ActivitiesJobExecution(String businessType,Object object) throws Exception;
	
	/**
	 * 活动任务执行(新)不影响百万 保留旧的
	 * @param code
	 * @return
	 * @throws Exception 
	 */
	public ResultMap ActivitiesJobExecutionObject(String businessType,Object object) throws Exception;
	
}
